package com.solr.web.model.base;

import java.io.Serializable;

public class Result implements Serializable {

    /**
     *Comment for <code>serialVersionUID</code>
     */
    private static final long serialVersionUID = -1776835663544058134L;
    
    /**
     * 处理结果
     */
    private boolean           success          = true;
    /**
     * 返回信息
     */
    private String            message          = "";
    /**
     * error code
     */
    private String            code             = "0";
    
    
    public Object data;


    public boolean isSuccess() {
        return success;
    }


    public void setSuccess(boolean success) {
        this.success = success;
    }


    public String getMessage() {
        return message;
    }


    public void setMessage(String message) {
        this.message = message;
    }


    public String getCode() {
        return code;
    }


    public void setCode(String code) {
    	if(!code.equals("0")){
    		success=false;
    	}
        this.code = code;
    }


    public Object getData() {
        return data;
    }


    public void setData(Object data) {
            this.data = data;            
    }


    public Result() {
        super();
    }
    
    

}
